Skip to content

Conversation

@jmgasper
Copy link
Collaborator

…ndar

@jmgasper jmgasper requested a review from kkartunov as a code owner January 26, 2026 21:41
@jmgasper jmgasper merged commit 83157d9 into dev Jan 26, 2026
4 of 6 checks passed
const isSelected = selectedDates.has(dateKey)
const statusClass = styles[getStatusColor(status)]
const statusClass = styles[getStatusColor(displayStatus)]
const isDisabled = isLoading || isWeekendDate

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Disabling the button for weekend dates (isDisabled = isLoading || isWeekendDate) might prevent users from selecting weekends even if they are intended to be selectable. Ensure this aligns with the intended functionality.

return fullName
}

if (user.status === LeaveStatus.WIPRO_HOLIDAY || user.userId === 'wipro-holiday') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ maintainability]
The condition user.userId === 'wipro-holiday' seems to be a hardcoded value. Consider extracting this into a constant or configuration to improve maintainability and avoid magic strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants